package com.example.smartagrisys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.smartagrisys.entity.FertilizingRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 施肥记录Mapper接口
 */
@Mapper
public interface FertilizingRecordMapper extends BaseMapper<FertilizingRecord> {
    
    /**
     * 分页查询农户的施肥记录
     * @param page 分页对象
     * @param farmerId 农户ID
     * @return 分页结果
     */
    Page<FertilizingRecord> selectFarmerFertilizingRecords(Page<FertilizingRecord> page, @Param("farmerId") Long farmerId);
} 